<template>
    <HomePanel ref="target" title="新鲜好物" subTitle="新鲜出炉 品质靠谱">
        <template v-slot:right>
            <More />
        </template>
        <!-- 面板内容 -->
        <HomeList :list="goods"/>
    </HomePanel>
</template>

<script setup>
import HomePanel from './home-panel.vue'
import HomeList from './home-list.vue'
import More from '@/components/lib/more.vue';
import { getNews } from '@/api/home'
import { useLazyData } from '@/hooks'

const {target, result: goods} = useLazyData(getNews)
</script>
<style lang='scss' scoped>
</style>